package com.zzsy.carosshopprojects.activitys.home.mainpage.charge;

import android.app.Activity;
import android.content.Intent;

import com.zzsy.carosshopprojects.R;
import com.zzsy.carosshopprojects.activitys.home.mainpage.common.CollectionFragment;
import com.zzsy.carosshopprojects.base.BaseActivity;

import me.yokeyword.fragmentation.anim.FragmentAnimator;

public class CollectionAc extends BaseActivity {
    public static void start(Activity mactivity,String amount, String usedOil, String productId, String oilsPrice, String productInfoId) {
        Intent intent = new Intent(mactivity, CollectionAc.class);
        intent.putExtra("amount", amount);
        intent.putExtra("usedOil", usedOil);
        intent.putExtra("productId", productId);
        intent.putExtra("oilsPrice", oilsPrice);
        intent.putExtra("productInfoId", productInfoId);
        mactivity.startActivity(intent);
        mactivity.overridePendingTransition(0, 0);
    }

    @Override
    protected int bindLayout() {
        return R.layout.ac_common;
    }

    @Override
    protected void initView() {
        loadRootFragment(R.id.fl_container, CollectionFragment.newInstance(getIntent().getStringExtra("amount"),getIntent().getStringExtra("usedOil") , getIntent().getStringExtra("productId"),  getIntent().getStringExtra("oilsPrice"),   getIntent().getStringExtra("productInfoId")));
        //全局改变Fragment的动画
        setFragmentAnimator(new FragmentAnimator());
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void loadMethod() {

    }


}

